package csu.web.mypetstore.service;

import csu.web.mypetstore.domain.Order;
import csu.web.mypetstore.persistence.OrderDao;
import csu.web.mypetstore.persistence.impl.OrderDaplmpl;

public class OrderService {
    private OrderDao orderDao;
    public OrderService(){
        this.orderDao = new OrderDaplmpl();
    }
    public void addOrder(Order order)
    {
        orderDao.insertOrder(order);
    }
    public int getOrderID(Order order){ return this.orderDao.getOrderID(order);}
}
